import {
	orderpGet,
	orderpPost,
	orderpPosttd
} from './helperOrderp.js'

// 工单池
const getMyList = orderpGet('/api/orders/myList')
// 事项列表
const getItemOrderList = orderpGet('/api/item/orderList')
// 事项列表对应的单位列表
const getItemUnits = orderpGet('/api/item/group/list')
// 事项对应开单信息
const getItemDetail = orderpGet('/api/item/detail')
// 开单可选单位列表
const getItemorgList = orderpGet('/api/item/orgList')
// 上传图片
const postUploadpicture = orderpPost('/api/upload/uploadpicture')
// 新增工单
const postOrdersAdd = orderpPost('/api/orders/add')
// 领导端工单
const getTodoHis = orderpGet('/api/orders/todoHis')

const getOrderDetail = orderpGet('/api/orders/detail')
// 流转日志
const getWorkOrderLogs = orderpGet('/api/orders/records')
// 抢单
const getTakeTask = orderpGet('/api/orders/takeTask')
// 取消抢单
const cancelTask = orderpGet('/api/orders/cancelTask')
// 退单
const postWithdraw = orderpPosttd('/api/orders/toAction')
// 分配退单
const allocatepostWithdraw = orderpPosttd('/api/orders/withdraw')
// 核验通过
const postCheck = orderpPost('/api/orders/check')
// 处置上提
const postOrderCommit = orderpPost('/api/orders/commit')
// 处置
const postOrderHandle = orderpPost('/api/orders/handle')
// 审核退回上一步
const postBackStep = orderpPost('/api/orders/backStep')
// 分派退回上一步
const allocatepostBackStep = orderpPost('/api/orders/allocate/back')
// 审核通过 
const postOrderAudit = orderpPost('/api/orders/audit')
// 转派部门
const getTransferDepartment = orderpGet('/api/node/getNodesById')
// 转派部门对应人员
const getNextPersons = orderpGet('/api/node/nextPersons')
// 转派提交
const postOrderDispatch = orderpPost('/api/orders/dispatch')
// 上提批示
const postOrderReply = orderpPost('/api/orders/reply')
// 关闭工单
const allocatepostCloseOrder = orderpPost('/api/orders/allocate/close')
// 关闭工单
const postCloseOrder = orderpPost('/api/orders/close')
// 预警时间列表  新的
const getYujingList = orderpGet('/api/orderpEvent/getEvent')
// 新建批示接口
const postInstructionAdd = orderpPost('/api/instruction/add')
// 获取批示列表
const getInstructions = orderpGet('/api/orderpEvent/getInstructions')
// 我的开单
const getSendUp = orderpGet('/api/orders/fromMe')
// 我的工单
const getWordOrder = orderpGet('/api/orders/orgList')
// 批示选项-清单
const getOptions = orderpGet('/api/instruction/getOptions')
// 批示选项-添加
const getAdds = orderpPost('/api/instruction/addInstruOption')
// 批示选项-删除
const getDeletes = orderpGet('/api/instruction/deleteInstruOption')
// 批示选项-修改
const getUpdates = orderpPost('/api/instruction/updateInstruOption')
// 通讯录组织清单
const getorgList = orderpGet('/api/route/orgList')
// 通讯录组织清单
const getuserorgList = orderpGet('/user/org_list')
// 用户在线提交经纬度
const posetReportUserLocation = orderpPost('/api/user/online/add')
// 根据节点id获取预分配组织
const orgByNodeId = orderpGet('/api/orders/allocate/orgByNodeId')
// 工单分配
const allocate = orderpPost('/api/orders/allocate')
// 工单分派处置
const allocatedo = orderpPost('/api/orders/allocate/handle')
// 历史工单详情
const detailById = orderpGet('/api/orders/detailById')
// 下拉列表
const sceneList = orderpGet('/api/scene/list')
// 下拉列表
const notice = orderpGet('/api/notice/list')
//获取用户列表
const getPersonListApi = orderpGet('/api/group/appoint/persons')
//指派工单
const appointTaskApi = orderpGet('/api/orders/appointTask')
export {
	getMyList,
	getItemOrderList,
	getItemUnits,
	getItemDetail,
	postUploadpicture,
	postOrdersAdd,
	getTodoHis,
	getWorkOrderLogs,
	getOrderDetail,
	postWithdraw,
	getTakeTask,
	postCheck,
	postOrderCommit,
	postOrderHandle,
	postBackStep,
	postOrderAudit,
	getTransferDepartment,
	getNextPersons,
	postOrderDispatch,
	postOrderReply,
	postCloseOrder,
	getYujingList,
	postInstructionAdd,
	getInstructions,
	getSendUp,
	getWordOrder,
	getOptions,
	getAdds,
	getDeletes,
	getUpdates,
	getorgList,
	getuserorgList,
	posetReportUserLocation,
	getItemorgList,
	orgByNodeId,
	allocate,
	allocatedo,
	detailById,
	sceneList,
	notice,
	cancelTask,
	allocatepostWithdraw,
	allocatepostCloseOrder,
	allocatepostBackStep,
	getPersonListApi,
	appointTaskApi
}